package com.blb.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.seckill.entity.SeckillOrder;

/**
 * 秒杀订单业务接口
 */
public interface SeckillOrderService extends IService<SeckillOrder> {

    /**
     * 秒杀异步下单
     * @param id
     * @param username
     * @return
     */
    SeckillOrder addOrder(Long id,String username);

    /**
     * 数据库下单
     * @param order
     */
    boolean createOrder(SeckillOrder order);
}
